<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>短视频设置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  {include file="public/css"/}
</head>
<style>
.chblock{ }
.chblock li{ display: flex; margin-right: 10px; padding-top:3px ; float: left;}
.w200{ width:80px; margin:4px 10px 0 0 ; height: 31px; }
</style>
<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-card layui-col-md12">
				<div class="layui-card-header"><i class="fa fa-cog"></i> 短视频设置</div>
				<div class="layui-card-body" pad15>
					<div class="layui-form" lay-filter="">
						
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">视频列表样式：</label>
							<div class="layui-input-inline">
								<input type="radio" name="info[list_type]" value="0" {if $info['list_type']==0}checked{/if} title="样式一" />
								<input type="radio" name="info[list_type]" value="1" {if $info['list_type']==1}checked{/if} title="样式二"/>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">用户可否上传：</label>
							<div class="layui-input-inline">
								<input type="radio" name="info[can_upload]" value="1" {if $info['can_upload']==1}checked{/if} title="是" lay-filter="can_upload"/>
								<input type="radio" name="info[can_upload]" value="0" {if $info['can_upload']==0}checked{/if} title="否" lay-filter="can_upload"/>
							</div>
						</div>
						<div id="can_uploadset" {if $info['can_upload']==0}style="display:none"{/if}>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width:130px">上传审核：</label>
								<div class="layui-input-inline">
									<input type="radio" name="info[upload_check]" value="1" {if $info['upload_check']==1}checked{/if} title="开启"/>
									<input type="radio" name="info[upload_check]" value="0" {if $info['upload_check']==0}checked{/if} title="关闭"/>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width:130px">上传最大限制：</label>
								<div class="layui-input-inline">
									<input type="text" name="info[upload_maxsize]" class="layui-input" value="{$info.upload_maxsize}">
								</div>
								<div class="layui-form-mid">kb</div>
								<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">0表示不限制</div>
							</div>
							<!-- <div class="layui-form-item">
								<label class="layui-form-label" style="width:130px">上传最大时长：</label>
								<div class="layui-input-inline">
									<input type="text" name="info[upload_maxduration]" class="layui-input" value="{$info.upload_maxduration}">
								</div>
								<div class="layui-form-mid">秒</div>
								<div class="layui-form-mid layui-word-aux" style="margin-left:10px;">0表示不限制</div>
							</div> -->
						</div>
						

						<div class="layui-form-item">
							<div class="layui-input-block" style="margin-left:160px;">
								<button class="layui-btn" lay-submit lay-filter="formsubmit">提 交</button>
							</div>
						</div>
					</div>
				</div>
			</div>
    </div>
  </div>
	{include file="public/js"/}
	<script>
	layui.form.on('radio(can_upload)', function(data){
		if(data.value == '1'){
			$('#can_uploadset').show();
		}else{
			$('#can_uploadset').hide();
		}
	})
	layui.form.on('submit(formsubmit)', function(obj){
		var field = obj.field
		//console.log(field)
		$.post("{:url('save')}",field,function(data){
			dialog(data.msg,data.status,data.url);
		})
	})
  </script>
	{include file="public/copyright"/}
</body>
</html>